import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:"/",
      redirect:"/home"
    },
    {
     path:"/home",
     component:()=>import("../pages/index.vue"),
     children:[
      {
        path:'/home/options',
        component:()=>import('../pages/liusen/options.vue')
      },
      {
        path:'/home/compositions',
        component:()=>import('../pages/liusen/compositions.vue')
      }
     ]
    },
    {
      path:'/zwf',
      component:()=>import('../pages/zwf.vue')
    },
    {
      path:'/wjbj',
      component:()=>import('../pages/wjbj.vue')
    },
    {
      path:'/zrm',
      component:()=>import('../pages/zrm.vue')
    }
  ]
})

export default router
